
<div id="content-header">
    <?php
    $this->widget('bootstrap.widgets.TbBreadcrumbs', array(
        'links' => array('Phân quyền' => 'admin', 'Danh sách'),
        'htmlOptions' => array('id' => 'breadcrumb')
    ));
    ?>
</div>
<div class="row-fluid">
    <div class="span2">
        <h6><?php echo AdmincpModule::t("Manage Profile Fields"); ?></h6>
        <?php
        echo $this->renderPartial('_menu', array(
            'list' => array(
                CHtml::link(AdmincpModule::t('Create Profile Field'), array('create')),
            ),
        ));
        ?>
    </div>
    <div class="span10">
        <div class="widget-box">
            <div class="widget-content nopadding">
                <div id="DataTables_Table_0_wrapper" class="dataTables_wrapper" role="grid">
                    <?php
                    $this->widget('bootstrap.widgets.TbGridView', array(
                        'dataProvider' => $dataProvider,
                        'columns' => array(
                            'id',
                            'varname',
                            array(
                                'name' => 'title',
                                'value' => 'AdmincpModule::t($data->title)',
                            ),
                            'field_type',
                            'field_size',
                            //'field_size_min',
                            array(
                                'name' => 'required',
                                'value' => 'ProfileField::itemAlias("required",$data->required)',
                            ),
                            //'match',
                            //'range',
                            //'error_message',
                            //'other_validator',
                            //'default',
                            'position',
                            array(
                                'name' => 'visible',
                                'value' => 'ProfileField::itemAlias("visible",$data->visible)',
                            ),
                            //*/
                            array(
                                'class' => 'CButtonColumn',
                            ),
                        ),
                    ));
                    ?>
                </div>
            </div>
        </div>
    </div>
</div>